package com.feign.wugongbang.hystric;

import com.feign.wugongbang.entity.WgbErrorCollection;
import com.feign.wugongbang.service.ErrorCollctionService;
import com.feign.wugongbang.utils.BaseResult;
import com.feign.wugongbang.utils.PageInfo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

import static com.feign.wugongbang.utils.Constants.*;

@Component
public class ErrorCollctionServiceHystric implements ErrorCollctionService {

    @Override
    public Object insert(@RequestParam Map<String, Object> map) throws Exception {
        return new BaseResult(RESPONSE_CODE_500,RESPONSE_MESSAGE_500,RESPONSE_MESSAGE_500_HYSTRIC);
    }

    @Override
    public Object selectByPrimaryKey(String id) {
        return new BaseResult(RESPONSE_CODE_500,RESPONSE_MESSAGE_500,RESPONSE_MESSAGE_500_HYSTRIC);
    }

    @Override
    public Object updateByPrimaryKey(Map<String, Object> map) throws Exception {
        return new BaseResult(RESPONSE_CODE_500,RESPONSE_MESSAGE_500,RESPONSE_MESSAGE_500_HYSTRIC);
    }

    @Override
    public Object selectAll(PageInfo pageInfo) {
        return new BaseResult(RESPONSE_CODE_500,RESPONSE_MESSAGE_500,RESPONSE_MESSAGE_500_HYSTRIC);
    }

    @Override
    public Object deleteByPrimaryKey(String id) {
        return new BaseResult(RESPONSE_CODE_500,RESPONSE_MESSAGE_500,RESPONSE_MESSAGE_500_HYSTRIC);
    }
}
